package org.openapitools.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.openapitools.model.InlineResponse2003DataTable;
import org.openapitools.jackson.nullable.JsonNullable;
import javax.validation.Valid;
import javax.validation.constraints.*;

/**
 * InlineResponse2003Data
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-24T17:27:43.335+08:00[Asia/Shanghai]")

public class InlineResponse2003Data   {
  @JsonProperty("total")
  private Integer total;

  @JsonProperty("pageNum")
  private Integer pageNum;

  @JsonProperty("pageSize")
  private Integer pageSize;

  @JsonProperty("pages")
  private Integer pages;

  @JsonProperty("table")
  private InlineResponse2003DataTable table;

  public InlineResponse2003Data total(Integer total) {
    this.total = total;
    return this;
  }

  /**
   * Get total
   * @return total
  */
  @ApiModelProperty(required = true, value = "")
  @NotNull


  public Integer getTotal() {
    return total;
  }

  public void setTotal(Integer total) {
    this.total = total;
  }

  public InlineResponse2003Data pageNum(Integer pageNum) {
    this.pageNum = pageNum;
    return this;
  }

  /**
   * Get pageNum
   * @return pageNum
  */
  @ApiModelProperty(required = true, value = "")
  @NotNull


  public Integer getPageNum() {
    return pageNum;
  }

  public void setPageNum(Integer pageNum) {
    this.pageNum = pageNum;
  }

  public InlineResponse2003Data pageSize(Integer pageSize) {
    this.pageSize = pageSize;
    return this;
  }

  /**
   * Get pageSize
   * @return pageSize
  */
  @ApiModelProperty(required = true, value = "")
  @NotNull


  public Integer getPageSize() {
    return pageSize;
  }

  public void setPageSize(Integer pageSize) {
    this.pageSize = pageSize;
  }

  public InlineResponse2003Data pages(Integer pages) {
    this.pages = pages;
    return this;
  }

  /**
   * Get pages
   * @return pages
  */
  @ApiModelProperty(required = true, value = "")
  @NotNull


  public Integer getPages() {
    return pages;
  }

  public void setPages(Integer pages) {
    this.pages = pages;
  }

  public InlineResponse2003Data table(InlineResponse2003DataTable table) {
    this.table = table;
    return this;
  }

  /**
   * Get table
   * @return table
  */
  @ApiModelProperty(required = true, value = "")
  @NotNull

  @Valid

  public InlineResponse2003DataTable getTable() {
    return table;
  }

  public void setTable(InlineResponse2003DataTable table) {
    this.table = table;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    InlineResponse2003Data inlineResponse2003Data = (InlineResponse2003Data) o;
    return Objects.equals(this.total, inlineResponse2003Data.total) &&
        Objects.equals(this.pageNum, inlineResponse2003Data.pageNum) &&
        Objects.equals(this.pageSize, inlineResponse2003Data.pageSize) &&
        Objects.equals(this.pages, inlineResponse2003Data.pages) &&
        Objects.equals(this.table, inlineResponse2003Data.table);
  }

  @Override
  public int hashCode() {
    return Objects.hash(total, pageNum, pageSize, pages, table);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class InlineResponse2003Data {\n");
    
    sb.append("    total: ").append(toIndentedString(total)).append("\n");
    sb.append("    pageNum: ").append(toIndentedString(pageNum)).append("\n");
    sb.append("    pageSize: ").append(toIndentedString(pageSize)).append("\n");
    sb.append("    pages: ").append(toIndentedString(pages)).append("\n");
    sb.append("    table: ").append(toIndentedString(table)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

